<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="${basePackageName}.domain.mybatis.dao.<#if prefixTk??>${prefixTk}</#if>${tableClassNamePrefix}Dao">

    <resultMap type="${basePackageName}.domain.mybatis.entity.<#if prefixTk??>${prefixTk}</#if>${tableClassNamePrefix}" id="BaseResultMap">
        <#list tableColumns as column>
        <result property="${column.propName}" column="${column.columnName}" jdbcType="${column.jdbcType}"/>
        </#list>
    </resultMap>

    <sql id="baseColumns">
        ${allColumns}
    </sql>

</mapper>